<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8"/>
    <title>51问医生</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    {{--<link rel="shortcut icon" href="/Public/mobile/favicon.ico" type="image/x-icon" />--}}
    <meta name="format-detection" content="telephone=no">
    <meta name="apple-mobile-web-app-capable" content="yes"/> <meta name="apple-mobile-web-app-status-bar-style" content="yes"/>
    <script src="{{url('/js/jquery.min.js')}}" type="text/javascript"></script>
    <link rel="stylesheet" href="{{url('new/css/common.css')}}" />

    <script src="{{url('new/js/doctor_list.js')}}"></script>
    <link rel="stylesheet" href="{{url('new/css/question.css')}}" />
    <style>
        .ax-bubble:before {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: -3.669724770642202%;
            width: 0%;
            height: .213333333333333rem;
            background-size: 100% 100%;
        }
        .ax-bubble{
            float: left;
            width: 78%;
            height: 1.04rem;
            color: #fdfdfd;
            font-size: .426666666666667rem;
            line-height: 1.04rem;
            text-align: center;
            margin-left: 2.140672782874617%;
            position: relative;
        }
    </style>
</head>
<body>
<div class="square">
    <ul>
        @if(count($questions) > 0)
            @foreach($questions as $question)
        <li class="qaList-one">
            <a class="qaList-one-content">
                <div class="question">
                    <span class="lable">问题：</span>{{$question->question}}</div>
                <div class="doc-card-qalist">
                    {{--<p>@if($question->doctor){{$question->doctor->doc_name}}-{{$question->doctor->station}}，o.docInfo.hospitalName@endif</p>--}}
                    <div class="info">
                        {{--<div class="icon-cover">--}}
                            {{--<img class='doctor-icon' src="//mcdn.anxinyisheng.com/Public/wxyd/common/img/head_icon_c766c55.png">--}}
                            {{--<span></span>--}}
                        {{--</div>--}}
                        @if(is_null($question->answer_time))
                        <div class="ax-bubble ax-bubble-timefree">
                            <a href="{{route('M.Doctor.answerQuestion')}}?q_id={{$question->id}}" style="color: white">
                            <timefree>等待回答</timefree>
                                </a>
                        </div>
                        @else
                            <div class="ax-bubble ax-bubble-timefree" style="background: #00c800">
                                <a href="{{route('M.Doctor.myAnswer')}}?q_id={{$question->id}}" style="color: white">
                                <timefree>查看我的回答</timefree>
                                </a>
                            </div>
                            @endif
                        <p class="num">
                            <span class="viewed">{{$question->read_num}}&nbsp;看过</span>
                        </p>
                    </div>
                </div>
            </a>
        </li>
            @endforeach
        @endif
    </ul>
</div>
<div class="fake_footer"></div>
</body>
</html>